package com.lzq.springblog.config;
import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.info.License;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Swagger
 配置类
 *
 *
 @Author
 */
//
@Configuration
//Springfox-Swagger
public class SwaggerConfig {
    /**
     * Springfox-Swagger
     基本配置

     * @return
     */

    @Bean
    public OpenAPI createApi() {
        return new OpenAPI()
                .info(new Info().title("blog system API")
                        .description("博客系统")
                        .version("v0.0.1")
                        .license(new License().name("Apache 2.0")
                                .url("https://springshop.wiki.github.org/docs")));
    }
}